package cart.haiboinvest.com.haibocart.ui.activity.account;

import android.app.Activity;
import android.content.Context;
import android.os.Bundle;
import android.view.View;
import android.widget.RelativeLayout;

import cart.haiboinvest.com.haibocart.R;


/**首页
 * Created by quan on 2016/4/14.
 */
public class HomeActivity extends Activity implements View.OnClickListener {
    private Context mContext;
    private RelativeLayout rlLanguageExchange;
    private RelativeLayout rlTeaching;
    private RelativeLayout rlStore;
    private RelativeLayout rlSubject;


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_home);
        mContext=this;
        findViews();
    }

    private void findViews() {
        rlLanguageExchange= (RelativeLayout) findViewById(R.id.rl_language_exchange);
        rlStore= (RelativeLayout) findViewById(R.id.rl_store);
        rlTeaching= (RelativeLayout) findViewById(R.id.rl_teaching_exchange);
        rlSubject= (RelativeLayout) findViewById(R.id.rl_subject);
        rlLanguageExchange.setOnClickListener(this);
        rlStore.setOnClickListener(this);
        rlTeaching.setOnClickListener(this);
        rlSubject.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        int viewId= v.getId();
        switch (viewId){
            case R.id.rl_language_exchange:

                break;
            case R.id.rl_teaching_exchange:

                break;
            case R.id.rl_subject:

                break;
            case R.id.rl_store:

                break;
        }
    }
}
